<?php /* Smarty version Smarty-3.1.11, created on 2013-09-03 14:45:35
         compiled from "..\templates\ctdt\monctdt.tpl" */ ?>
<?php /*%%SmartyHeaderCode:56575225939f666ac4-94664281%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5e9b6dd96c071ff8d1f4f4dcc65c10093bd00e08' => 
    array (
      0 => '..\\templates\\ctdt\\monctdt.tpl',
      1 => 1369041341,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '56575225939f666ac4-94664281',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'dmctdt' => 0,
    'ctdt' => 0,
    'locdl' => 0,
    'dmlmh' => 0,
    'lmh' => 0,
    'thongbao' => 0,
    'dmmonhoc' => 0,
    'dmmh' => 0,
    'mctdt' => 0,
    'dt' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_5225939f889b11_17639170',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5225939f889b11_17639170')) {function content_5225939f889b11_17639170($_smarty_tpl) {?><script>
    function loc(){
        var url="index.php?muc=ctdt&modul=monctdt";
        if($("#ctdt").val()!=""){
            url=url+"&ctdt="+$("#ctdt").val();
        }
        if($("#loaimonhoc").val()!=""){
            url=url+"&loaimonhoc="+$("#loaimonhoc").val();
        }        
        window.location.href=url;
    }
</script>

<div class="content-box">  
    <div class="content-box-header">    <!------------------content-box-header---------------------->
        <h3>Danh Sách CTĐT - Môn học</a></h3>
    </div> <!-- End .content-box-header --> 
    <div class="content-box-content"><br /><br />
<!--------------------------------------------------Nội dung trang------------------------------------------------------>
      
       <form action="" id="formnoidung" method="POST">
        <table style="margin-left:190px">
            <tr>
                <td colspan="4" ><h3 style="margin-left:50px">Thêm môn học cho Chương trình đào tạo</h3></td>
            </tr>
            <tr>
                <td>
               Mã CTĐT :
                    <select name="ctdt" id="ctdt" onchange="loc()">
                            <option value="">-- Chương trình đào tạo --</option>
                            <?php  $_smarty_tpl->tpl_vars['ctdt'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ctdt']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dmctdt']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['ctdt']->key => $_smarty_tpl->tpl_vars['ctdt']->value){
$_smarty_tpl->tpl_vars['ctdt']->_loop = true;
?>
                                <option value="<?php echo $_smarty_tpl->tpl_vars['ctdt']->value['ma_ctdt'];?>
" <?php if ($_smarty_tpl->tpl_vars['ctdt']->value['ma_ctdt']==$_smarty_tpl->tpl_vars['locdl']->value['ctdt']){?>selected=''<?php }?> ><?php echo $_smarty_tpl->tpl_vars['ctdt']->value['ten_td'];?>
-<?php echo $_smarty_tpl->tpl_vars['ctdt']->value['ten_hedt'];?>
-<?php echo $_smarty_tpl->tpl_vars['ctdt']->value['ten_nganh'];?>
</option>
                            <?php } ?>
                    </select>
               </td>
            </tr>
            <tr>
               <td >     
               Loại môn học:
                    <select name="loaimonhoc" id="loaimonhoc" >
                            <option value="">-- Loại môn học --</option>
                            <?php  $_smarty_tpl->tpl_vars['lmh'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lmh']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dmlmh']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['lmh']->key => $_smarty_tpl->tpl_vars['lmh']->value){
$_smarty_tpl->tpl_vars['lmh']->_loop = true;
?>                            
                             <option value="<?php echo $_smarty_tpl->tpl_vars['lmh']->value['ma_lmh'];?>
" <?php if ($_smarty_tpl->tpl_vars['lmh']->value['ma_lmh']==$_smarty_tpl->tpl_vars['locdl']->value['loaimonhoc']){?>selected=''<?php }?> ><?php echo $_smarty_tpl->tpl_vars['lmh']->value['ten_lmh'];?>
</option>
                            <?php } ?>
                    </select>
               </td>
               <td>
                <input class="button" type="submit" name="luu" value="Lưu" />  
                </td>
             </tr>   
             <tr>   
                <td>
                    <font color="red"><b><?php echo $_smarty_tpl->tpl_vars['thongbao']->value;?>
</b></font>
                </td>
             </tr>
             <tr>
             <td colspan="4">
             <div id="dsmon" style="height: 200px; width: 450px; overflow:auto" >
                <?php  $_smarty_tpl->tpl_vars['dmmh'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['dmmh']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dmmonhoc']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['dmmh']->key => $_smarty_tpl->tpl_vars['dmmh']->value){
$_smarty_tpl->tpl_vars['dmmh']->_loop = true;
?>
                 <input type="checkbox" name="mon[]" value="<?php echo $_smarty_tpl->tpl_vars['dmmh']->value['madm_mh'];?>
" /><?php echo $_smarty_tpl->tpl_vars['dmmh']->value['ten_mh'];?>
<br />                                 
                <?php } ?>
            </div>
             </td>
             </tr>
        </table>
        
        
        
        <br /><br />
        <table>
            <tr>
                <td colspan="6" ><h3  style="margin-left:300px">Danh Sách Chương Trình Đào Tạo - Môn học</h3></td>
            </tr>
            <tr>
                    <td><input class="button" type="submit" name="xoa" value="Xóa" /> </td>
                    <td class="td-300">Loại môn học</td>
                    <td class="td-300">Môn học</td>
                    <td class="td-300">Mã CTDT</td>
                    
            </tr>
            <?php  $_smarty_tpl->tpl_vars['dt'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['dt']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['mctdt']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['dt']->key => $_smarty_tpl->tpl_vars['dt']->value){
$_smarty_tpl->tpl_vars['dt']->_loop = true;
?>
            <tr>
                <td class="td-100"><input type="checkbox" name="check[]" value="'<?php echo $_smarty_tpl->tpl_vars['dt']->value['ma_mctdt'];?>
'" /></td>
                <td>
                    <?php  $_smarty_tpl->tpl_vars['lmh'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lmh']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dmlmh']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['lmh']->key => $_smarty_tpl->tpl_vars['lmh']->value){
$_smarty_tpl->tpl_vars['lmh']->_loop = true;
?>
                    <?php if ($_smarty_tpl->tpl_vars['lmh']->value['ma_lmh']==$_smarty_tpl->tpl_vars['dt']->value['ma_lmh']){?><?php echo $_smarty_tpl->tpl_vars['lmh']->value['ten_lmh'];?>
<?php }?>
                      <?php } ?>             
                </td>
                <td>  
                    <?php  $_smarty_tpl->tpl_vars['dmmh'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['dmmh']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dmmonhoc']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['dmmh']->key => $_smarty_tpl->tpl_vars['dmmh']->value){
$_smarty_tpl->tpl_vars['dmmh']->_loop = true;
?>
                        <?php if ($_smarty_tpl->tpl_vars['dmmh']->value['madm_mh']==$_smarty_tpl->tpl_vars['dt']->value['madm_mh']){?><?php echo $_smarty_tpl->tpl_vars['dmmh']->value['ten_mh'];?>
<?php }?>
                    <?php } ?> 
                </td>
                <td>  <?php  $_smarty_tpl->tpl_vars['ctdt'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ctdt']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dmctdt']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['ctdt']->key => $_smarty_tpl->tpl_vars['ctdt']->value){
$_smarty_tpl->tpl_vars['ctdt']->_loop = true;
?>
                    <?php if ($_smarty_tpl->tpl_vars['ctdt']->value['ma_ctdt']==$_smarty_tpl->tpl_vars['dt']->value['ma_ctdt']){?><?php echo $_smarty_tpl->tpl_vars['ctdt']->value['ma_ctdt'];?>
<?php }?><?php } ?> 
                     </td>
                
            </tr>
            <?php } ?>
        </table>
        
</form>
<!------------------------------------------------------Kết thúc trang----------------------------------------------------------------->
</div> <!-- End .content-box-content->

</div> <!-- End .content-box---><?php }} ?>